package com.woniu.maintain.service.impl;

import com.woniu.common.entity.JpMaintain;
import com.woniu.maintain.dao.JpMaintainDao;
import com.woniu.maintain.service.JpMaintionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 啊川
 * @version 1.0
 * @date 2021/9/16 17:53
 * @QQ 836782490
 * @content:
 */
@Service
public class JpMaintionServiceImpl implements JpMaintionService {

    @Resource
    private JpMaintainDao jpMaintainDao;


    @Override
    public List<JpMaintain> findAll() {
        return jpMaintainDao.selectByExample(null);
    }

    @Override
    public JpMaintain findById(Integer id) {
        return jpMaintainDao.selectByPrimaryKey(id);
    }


}
